import service from '@/utils/request'

// @Tags CusOrder
// @Summary 创建cusOrder表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusOrder true "创建cusOrder表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /cusOrder/createCusOrder [post]
export const createCusOrder = (data) => {
  return service({
    url: '/cusOrder/createCusOrder',
    method: 'post',
    data
  })
}

// @Tags CusOrder
// @Summary 删除cusOrder表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusOrder true "删除cusOrder表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cusOrder/deleteCusOrder [delete]
export const deleteCusOrder = (params) => {
  return service({
    url: '/cusOrder/deleteCusOrder',
    method: 'delete',
    params
  })
}

// @Tags CusOrder
// @Summary 批量删除cusOrder表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除cusOrder表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cusOrder/deleteCusOrder [delete]
export const deleteCusOrderByIds = (params) => {
  return service({
    url: '/cusOrder/deleteCusOrderByIds',
    method: 'delete',
    params
  })
}

// @Tags CusOrder
// @Summary 更新cusOrder表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusOrder true "更新cusOrder表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /cusOrder/updateCusOrder [put]
export const updateCusOrder = (data) => {
  return service({
    url: '/cusOrder/updateCusOrder',
    method: 'put',
    data
  })
}

// @Tags CusOrder
// @Summary 用id查询cusOrder表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CusOrder true "用id查询cusOrder表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /cusOrder/findCusOrder [get]
export const findCusOrder = (params) => {
  return service({
    url: '/cusOrder/findCusOrder',
    method: 'get',
    params
  })
}

// @Tags CusOrder
// @Summary 分页获取cusOrder表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取cusOrder表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /cusOrder/getCusOrderList [get]
export const getCusOrderList = (params) => {
  return service({
    url: '/cusOrder/getCusOrderList',
    method: 'get',
    params
  })
}
